package com.east.sng.entity.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author east
 * @date: 2021/1/5
 * @Description: role receive param javabean
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoleParam {

    @NotNull(message = "{param.id.notnull}")
    private Integer roleId;

    @NotBlank(message = "{roleparam.rolecode.notblank}")
    @Pattern(regexp = "^([0-9]*){1,2}$",message = "{roleparam.rolecode.notblank}")
    private String roleCode;

    @NotBlank(message = "{roleparam.rolename.notblank}")
    private String roleName;

}
